﻿using System.Windows.Forms;

namespace TeamReview.UI
{
    internal class FieldColumnDescriptor
    {
        public FieldColumnDescriptor(string field, string caption, int width)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = DataGridViewColumnSortMode.Automatic;
        }

        public FieldColumnDescriptor(string field, string caption, int width, DataGridViewColumnSortMode sort)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = sort;
        }

        private string field;

        public string Field
        {
            get { return field; }
            set { field = value; }
        }

        private string caption;

        public string Caption
        {
            get { return caption; }
            set { caption = value; }
        }

        private int width;

        public int Width
        {
            get { return width; }
            set { width = value; }
        }

        private DataGridViewColumnSortMode sortMode;

        public DataGridViewColumnSortMode SortMode
        {
            get { return sortMode; }
            set { sortMode = value; }
        }
    }
}
